package com.geek.factory.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("products")
@ApiModel("产品实体")
public class Productx {
    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("产品名称")
    private String name;

    @ApiModelProperty("产品型号")
    private String model;

    @ApiModelProperty("产品分类")
    private String category;

    @ApiModelProperty("产品价格")
    private Double price;

    @ApiModelProperty("产品描述")
    private String description;

    @ApiModelProperty("产品图片")
    private String pic;

}
